Measurement of refractive error and amplitude of pseudoaccommodation